package com.poul.acfun.ac_view.fragment;


import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;

import com.poul.acfun.R;
import com.poul.acfun.ac_model.bean.PushBean;
import com.poul.acfun.ac_utils.AcNetUtil;
import com.poul.acfun.ac_view.activity.LoginActivity;
import com.poul.acfun.ac_view.activity.MainActivity;
import com.poul.acfun.adapter.PushAdapter;
import com.poul.acfun.listener.OnGetListener;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * A simple {@link Fragment} subclass.
 */
public class NoticeFragment extends Fragment implements View.OnClickListener {


    @BindView(R.id.notice)
    RecyclerView notice;
    private RecyclerView recycler;
    private Button login;

    public NoticeFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_notice, container, false);
        recycler = ((RecyclerView) view.findViewById(R.id.notice));
        recycler.setVisibility(View.GONE);
        login = (Button)view.findViewById(R.id.notice_logo);
        login.setOnClickListener(this);
        return view;
    }


    @Override
    public void onClick(View v) {
        Intent intent = new Intent(getContext(), LoginActivity.class);
        startActivity(intent);
    }
}
